home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / unix-faq.faq.part7 < prev    next >
Encoding:
Internet Message Format  |  1994-05-16  |  13.8 KB

  1. Subject: Unix - Frequently Asked Questions (7/7) [Frequent posting]
  2. Newsgroups: comp.unix.questions,comp.unix.shell,comp.answers,news.answers
  3. From: tmatimar@isgtec.com (Ted Timar)
  4. Date: 14 May 1994 10:18:57 GMT
  5.  
  6. Archive-name: unix-faq/faq/part7
  7. Version: $Id: part7,v 2.5 1994/04/28 19:25:03 tmatimar Exp $
  8.  
  9. These seven articles contain the answers to some Frequently Asked
  10. Questions often seen in comp.unix.questions and comp.unix.shell.
  11. Please don't ask these questions again, they've been answered plenty
  12. of times already - and please don't flame someone just because they may
  13. not have read this particular posting.  Thank you.
  14.  
  15. This collection of documents is Copyright (c) 1994, Ted Timar.
  16. All rights reserved.  Permission to distribute the collection is
  17. hereby granted providing that distribution is electronic, no money
  18. is involved, reasonable attempts are made to use the latest version
  19. and all credits and this copyright notice are maintained.
  20. Other requests for distribution will be considered.
  21.  
  22. All information here has been contributed with good intentions, but
  23. none of it is guaranteed either by the contributors or myself to be
  24. accurate.  The users of this information take all responsibility for
  25. any damage that may occur.
  26.  
  27. Many FAQs, including this one, are available on the archive site
  28. rtfm.mit.edu in the directory pub/usenet/news.answers.
  29. The name under which a FAQ is archived appears in the "Archive-Name:"
  30. line at the top of the article.  This FAQ is archived as
  31. "unix-faq/faq/part[1-7]".
  32.  
  33. These articles are divided approximately as follows:
  34.  
  35.       1.*) General questions.
  36.       2.*) Relatively basic questions, likely to be asked by beginners.
  37.       3.*) Intermediate questions.
  38.       4.*) Advanced questions, likely to be asked by people who thought
  39.        they already knew all of the answers.
  40.       5.*) Questions pertaining to the various shells, and the differences.
  41.       6.*) An overview of Unix variants.
  42.       7.*) An comparison of configuration management systems (RCS, SCCS).
  43.  
  44. This article includes answers to:
  45.  
  46.       7.1)  RCS vs SCCS:  Introduction
  47.       7.2)  RCS vs SCCS:  How do the interfaces compare?
  48.       7.3)  RCS vs SCCS:  What's in a Revision File?
  49.       7.4)  RCS vs SCCS:  What are the keywords?
  50.       7.5)  What's an RCS symbolic name?
  51.       7.6)  RCS vs SCCS:  How do they compare for performance?
  52.       7.7)  RCS vs SCCS:  Version Identification.
  53.       7.8)  RCS vs SCCS:  How do they handle problems?
  54.       7.9)  RCS vs SCCS:  How do they interact with make(1)?
  55.       7.10) RCS vs SCCS:  Conversion
  56.       7.11) RCS vs SCCS:  Support
  57.       7.12) RCS vs SCCS:  Command Comparison
  58.       7.13) RCS vs SCCS:  Acknowledgements
  59.       7.14) Can I get more information on configuration management systems?
  60.  
  61. If you're looking for the answer to, say, question 7.5, and want to skip
  62. everything else, you can search ahead for the regular expression "^7.5)".
  63.  
  64. While these are all legitimate questions, they seem to crop up in
  65. comp.unix.questions or comp.unix.shell on an annual basis, usually
  66. followed by plenty of replies (only some of which are correct) and then
  67. a period of griping about how the same questions keep coming up.  You
  68. may also like to read the monthly article "Answers to Frequently Asked
  69. Questions" in the newsgroup "news.announce.newusers", which will tell
  70. you what "UNIX" stands for.
  71.  
  72. With the variety of Unix systems in the world, it's hard to guarantee
  73. that these answers will work everywhere.  Read your local manual pages
  74. before trying anything suggested here.  If you have suggestions or
  75. corrections for any of these answers, please send them to to
  76. tmatimar@isgtec.com.
  77.  
  78. ----------------------------------------------------------------------
  79.  
  80. Subject: RCS vs SCCS:  Introduction
  81. Date: Sat, 10 Oct 92 19:34:39 +0200
  82. From: Bill Wohler <wohler@sap-ag.de>
  83.  
  84. 7.1)  RCS vs SCCS:  Introduction
  85.  
  86.       The majority of the replies (in a recent poll) were in favor of
  87.       RCS, a few for SCCS, and a few suggested alternatives such as CVS.
  88.  
  89.       Functionally RCS and SCCS are practically equal, with RCS having
  90.       a bit more features since it continues to be updated.
  91.  
  92.       Note that RCS learned from the mistakes of SCCS...
  93.  
  94. ------------------------------
  95.  
  96. Subject: RCS vs SCCS:  How do the interfaces compare?
  97. Date: Sat, 10 Oct 92 19:34:39 +0200
  98. From: Bill Wohler <wohler@sap-ag.de>
  99.  
  100. 7.2)  RCS vs SCCS:  How do the interfaces compare?
  101.  
  102.       RCS has an easier interface for first time users.  There are less
  103.       commands, it is more intuitive and consistent, and it provides
  104.       more useful arguments.
  105.  
  106.       Branches have to be specifically created in SCCS.  In RCS, they
  107.       are checked in as any other version.
  108.  
  109. ------------------------------
  110.  
  111. Subject: RCS vs SCCS:  What's in a Revision File?
  112. Date: Sat, 10 Oct 92 19:34:39 +0200
  113. From: Bill Wohler <wohler@sap-ag.de>
  114.  
  115. 7.3)  RCS vs SCCS:  What's in a Revision File?
  116.  
  117.       RCS keeps history in files with a ",v" suffix.  SCCS keeps
  118.       history in files with a "s." prefix.
  119.  
  120.       RCS looks for RCS files automatically in the current directory or
  121.       in a RCS subdirectory, or you can specify an alternate RCS file.
  122.       The sccs front end to SCCS always uses the SCCS directory.  If
  123.       you don't use the sccs front end, you must specify the full SCCS
  124.       filename.
  125.  
  126.       RCS stores its revisions by holding a copy of the latest version
  127.       and storing backward deltas.  SCCS uses a "merged delta"
  128.       concept.
  129.  
  130.       All RCS activity takes place within a single RCS file.  SCCS
  131.       maintains several files.  This can be messy and confusing.
  132.  
  133.       Editing either RCS or SCCS files is a bad idea because mistakes
  134.       are so easy to make and so fatal to the history of the file.
  135.       Revision information is easy to edit in both types, whereas one
  136.       would not want to edit the actual text of a version in RCS.  If
  137.       you edit an SCCS file, you will have to recalculate the checksum
  138.       using the admin program.
  139.  
  140. ------------------------------
  141.  
  142. Subject: RCS vs SCCS:  What are the keywords?
  143. Date: Sat, 10 Oct 92 19:34:39 +0200
  144. From: Bill Wohler <wohler@sap-ag.de>
  145.  
  146. 7.4)  RCS vs SCCS:  What are the keywords?
  147.  
  148.       RCS and SCCS use different keywords that are expanded in the
  149.       text.  For SCCS the keyword "%I%" is replaced with the revision
  150.       number if the file is checked out for reading.
  151.  
  152.       The RCS keywords are easier to remember, but keyword expansion is
  153.       more easily customized in SCCS.
  154.  
  155.       In SCCS, keywords are expanded on a read-only get.  If a version
  156.       with expanded keywords is copied into a file that will be
  157.       deltaed, the keywords will be lost and the version information in
  158.       the file will not be updated.  On the other hand, RCS retains the
  159.       keywords when they are expanded so this is avoided.
  160.  
  161. ------------------------------
  162.  
  163. Subject: What's an RCS symbolic name?
  164. Date: Sat, 10 Oct 92 19:34:39 +0200
  165. From: Bill Wohler <wohler@sap-ag.de>
  166.  
  167. 7.5)  What's an RCS symbolic name?
  168.  
  169.       RCS allows you treat a set of files as a family of files while
  170.       SCCS is meant primarily for keeping the revision history of
  171.       files.
  172.  
  173.       RCS accomplishes that with symbolic names: you can mark all the
  174.       source files associated with an application version with `rcs
  175.       -n', and then easily retrieve them later as a cohesive unit.  In
  176.       SCCS you would have to do this by writing a script to write or
  177.       read all file names and versions to or from a file.
  178.  
  179. ------------------------------
  180.  
  181. Subject: RCS vs SCCS:  How do they compare for performance?
  182. Date: Sat, 10 Oct 92 19:34:39 +0200
  183. From: Bill Wohler <wohler@sap-ag.de>
  184.  
  185. 7.6)  RCS vs SCCS:  How do they compare for performance?
  186.  
  187.       Since RCS stores the latest version in full, it is much faster in
  188.       retrieving the latest version.  After RCS version 5.6, it is also
  189.       faster than SCCS in retrieving older versions.
  190.  
  191. ------------------------------
  192.  
  193. Subject: RCS vs SCCS:  Version Identification.
  194. Date: Sat, 10 Oct 92 19:34:39 +0200
  195. From: Bill Wohler <wohler@sap-ag.de>
  196.  
  197. 7.7)  RCS vs SCCS:  Version Identification.
  198.  
  199.       SCCS is able to determine when a specific line of code was added
  200.       to a system.
  201.  
  202. ------------------------------
  203.  
  204. Subject: RCS vs SCCS:  How do they handle problems?
  205. Date: Sat, 10 Oct 92 19:34:39 +0200
  206. From: Bill Wohler <wohler@sap-ag.de>
  207.  
  208. 7.8)  RCS vs SCCS:  How do they handle problems?
  209.  
  210.       If you are missing the sccs or rcs tools, or the RCS or SCCS file
  211.       is corrupt and the tools don't work on it, you can still retrieve
  212.       the latest version in RCS.  Not true with SCCS.
  213.  
  214. ------------------------------
  215.  
  216. Subject: RCS vs SCCS:  How do they interact with make(1)?
  217. Date: Wed, 30 Dec 1992 10:41:51 -0700
  218. From: Blair P. Houghton <bhoughto@sedona.intel.com>
  219.  
  220. 7.9)  RCS vs SCCS:  How do they interact with make(1)?
  221.  
  222.       The fact that SCCS uses prefixes (s.file.c) means that make(1)
  223.       can't treat them in an ordinary manner, and special rules
  224.       (involving '~' characters) must be used in order for make(1) to
  225.       work with SCCS; even so, make(1) on some UNIX platforms will not
  226.       apply default rules to files that are being managed with SCCS.
  227.       The suffix notation (file.c,v) for RCS means that ordinary
  228.       suffix-rules can be used in all implementations of make(1), even
  229.       if the implementation isn't designed to handle RCS files
  230.       specially.
  231.  
  232. ------------------------------
  233.  
  234. Subject: RCS vs SCCS:  Conversion.
  235. Date: Sat, 10 Oct 92 19:34:39 +0200
  236. From: Bill Wohler <wohler@sap-ag.de>
  237.  
  238. 7.10) RCS vs SCCS:  Conversion.
  239.  
  240.       RCS provides a program to convert from SCCS to RCS.  One would
  241.       have to write his own program to convert from RCS to SCCS.
  242.  
  243. ------------------------------
  244.  
  245. Subject: RCS vs SCCS:  Support
  246. Date: Sat, 10 Oct 92 19:34:39 +0200
  247. From: Bill Wohler <wohler@sap-ag.de>
  248.  
  249. 7.11) RCS vs SCCS:  Support
  250.  
  251.       SCCS is supported by AT&T.  RCS is supported by the Free Software
  252.       Foundation.  Therefore RCS runs on many more platforms, including
  253.       PCs.
  254.  
  255.       Most make programs recognize SCCS's "s."  prefix while GNU make
  256.       is one of the few that handles RCS's ",v" suffix.
  257.  
  258.       Some tar programs have a -F option that ignores either RCS
  259.       directories, or SCCS directories or both.
  260.  
  261. ------------------------------
  262.  
  263. Subject: RCS vs SCCS:  Command Comparison
  264. Date: Sat, 10 Oct 92 19:34:39 +0200
  265. From: Bill Wohler <wohler@sap-ag.de>
  266.  
  267. 7.12) RCS vs SCCS:  Command Comparison
  268.  
  269.       SCCS                        RCS                   Explanation
  270.       ====                        ===                   ===========
  271.  
  272.       sccs admin -i -nfile file   ci file               Checks in the file
  273.                                                         for the first time,
  274.                                                         creating the revision
  275.                                                         history file.
  276.  
  277.       sccs get file               co file               Check out a file for
  278.                                                         reading.
  279.  
  280.       sccs edit file              co -l file            Check out a file for
  281.                                                         modification.
  282.  
  283.       sccs delta file             ci file               Check in a file
  284.                                                         previously locked.
  285.  
  286.       what file                   ident file            Print keyword
  287.                                                         information.
  288.  
  289.       sccs prs file               rlog file             Print a history of
  290.                                                         the file.
  291.  
  292.       sccs sccsdiff -rx -ry file  rcsdiff -rx -ry file  Compare two
  293.                                                         revisions.
  294.  
  295.       sccs diffs file             rcsdiff file          Compare current with
  296.                                                         last revision.
  297.  
  298.       sccs edit -ix-y file        rcsmerge -rx-y file   Merge changes between
  299.                                                         two versions into
  300.                                                         file.
  301.  
  302.       ???                         rcs -l file           Lock the latest
  303.                                                         revision.
  304.  
  305.       ???                         rcs -u file           Unlock the latest
  306.                                                         revision.  Possible
  307.                                                         to break another's 
  308.                                                         lock, but mail is
  309.                                                         sent to the other
  310.                                                         user explaining why.
  311.  
  312. ------------------------------
  313.  
  314. Subject: RCS vs SCCS:  Acknowledgements
  315. Date: Sat, 10 Oct 92 19:34:39 +0200
  316. From: Bill Wohler <wohler@sap-ag.de>
  317.  
  318. 7.13) RCS vs SCCS:  Acknowledgements
  319.  
  320.       I would like to thank the following persons for contributing to
  321.       these articles.  I'd like to add your name to the list--please
  322.       send comments or more references to Bill Wohler <wohler@sap-ag.de>.
  323.  
  324.     Karl Vogel <vogel@c-17igp.wpafb.af.mil>
  325.     Mark Runyan <runyan@hpcuhc.cup.hp.com>
  326.     Paul Eggert <eggert@twinsun.com>
  327.     Greg Henderson <henders@infonode.ingr.com>
  328.     Dave Goldberg <dsg@mbunix.mitre.org>
  329.     Rob Kurver <rob@pact.nl>
  330.     Raymond Chen <rjc@math.princeton.edu>
  331.     Dwight <dwight@s1.gov>
  332.  
  333. ------------------------------
  334.  
  335. Subject: Can I get more information on configuration management systems?
  336. Date: Thu Oct 15 10:27:47 EDT 1992
  337. From: Ted Timar <tmatimar@isgtec.com>
  338.  
  339. 7.14) Can I get more information on configuration management systems?
  340.  
  341.       Bill Wohler, who compiled all of the information in this part of
  342.       the FAQ, has compiled much more information.  This information is
  343.       available for ftp from ftp.wg.omron.co.jp (133.210.4.4) under
  344.       "pub/unix-faq/docs/rev-ctl-sys".
  345.  
  346. ------------------------------
  347.  
  348. End of unix/faq Digest part 7 of 7
  349. **********************************
  350.  
  351. -- 
  352. Ted Timar - tmatimar@isgtec.com
  353. ISG Technologies Inc., 6509 Airport Road, Mississauga, Ontario, Canada L4V 1S7
  354.  
  355.